package com.jqk.cloudzuul.mytest;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author:JiangQiKun
 * @Date:2022/03/13 01:05 AM
 * Description:
 * com.jqk.cloudzuul.mytestMyTest
 *
 * 读取配置文件
 */
@Component
@PropertySource(value = {"classpath:application-mytest.yml"})
@ConfigurationProperties(prefix = "jqk")
@Data
public class MyTest {

    @Value("${address}")
    private String address;

}
